package com.zsix.system.mapper.processDefinitionMapper;

import com.zsix.common.dto.controllerParams.TimedStart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TimedStartMapper {
    /**
     * 获取定时任务
     * @param processKey
     * @return
     */
    TimedStart getTimedStart(@Param("processKey") String processKey);

    /**
     * 设置流程定时发起
     * @param timedStart
     * @return
     */
    int setTimedStart(TimedStart timedStart);

    /**
     * 删除流程定时发起
     * @param processKey
     * @return
     */
    int deleteTimedStart(@Param("processKey") String processKey);
}
